package entity;

import entity.enums.HikMsgType;

/**
 * 头部报文基础部分
 *
 * @author zhouwz
 * @date 2020/11/24 11:17
 */
public class BaseHead {

    public BaseHead(Short len, HikMsgType hikMsgType) {
        this.len = len;
        this.hikMsgType = hikMsgType;
    }

    /**
     * 报文长度
     */
    private Short len;

    /**
     * 报文类型
     */
    private HikMsgType hikMsgType;

    /**
     * 报文全部(头+主体)
     */
    private byte[] data;

    public HikMsgType getHikMsgType() {
        return hikMsgType;
    }


    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public Short getLen() {
        return len;
    }
}
